Skip to content

[pull] main from mobxjs:main - #44

Merged
pull[bot] merged 20 commits into
code:mainfrom
mobxjs:main
May 4, 2026
Merged

[pull] main from mobxjs:main#44
pull[bot] merged 20 commits into
code:mainfrom
mobxjs:main

Conversation

@pull

@pull pull Bot commented May 4, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

mweststrate and others added 20 commits May 4, 2026 13:00
Co-authored-by: Copilot <copilot@github.com>
…with observer (#4630)

When a component is wrapped with `observer` using an arrow function
(the most common pattern in examples), `eslint-plugin-react-hooks` rules
such as `rules-of-hooks` and `exhaustive-deps` silently stop working
because the plugin does not recognise the wrapped result as a React
component.

Add a new collapsible tip section that:
- explains why the problem occurs
- shows that using a named function inside `observer` fixes it
- cross-references the displayName tip since both share the same solution
- mentions the `componentWrapperFunctions` eslint-plugin-react option
  as a partial workaround (and clarifies its limitations)

Related: #4594

Co-authored-by: tomeelog <tomeelog@gmail.com>
@pull pull Bot locked and limited conversation to collaborators May 4, 2026
@pull pull Bot added the ⤵️ pull label May 4, 2026
@pull
pull Bot merged commit 0de4830 into code:main May 4, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants